package com.gxa.community.core.pojo.domain.goodsdo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 商品信息表
 * </p>
 *
 * @author gxa
 * @since 2022-07-18
 */
@Data
@TableName("goods_log")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "GoodsLog对象", description = "商品信息表")
public class GoodsLog implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("商品名字")
    private String goodsName;

    @ApiModelProperty("商品编号")
    private String goodsNo;

    @ApiModelProperty("订单编号")
    private String orderNo;

    @ApiModelProperty("操作人id")
    private Integer adminId;

    @ApiModelProperty("操作时间")
    private Long actionTime;

    @ApiModelProperty("操作数量")
    private Integer actionNum;

    @ApiModelProperty("剩余库存")
    private Integer stockNum;

    @ApiModelProperty("操作类型 1生成订单 2取消订单 3编辑商品 4添加商品")
    private Integer actionType;

    @ApiModelProperty("库存记录类型 1商品出库 2商品入库")
    private Integer type;

}
